<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>1.对象属性标志</title>
</head>
<body>
    
</body>

<script>
    // 声明一个对象，里面有两个属性：name ,sex属性
    let user = {
        name: "tofacebook.com",
        sex:'12'
    };
//通过 Object.getOwnPropertyDescriptor(对象名，对象中的某一个属性)
let descriptor = Object.getOwnPropertyDescriptor(user, 'name');

//打印对象中的name的标识信息
console.log(descriptor)
</script>
</html>